<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>New Page 1</title>
<?php include("../../MerchandiseBay/conn.php"); ?>
<?
$oldname=$_REQUEST['oldname'];
$username=trim($_REQUEST['username']);
$password=trim($_REQUEST['password']);



$sql="update admin set username='$username', password='$password' where name='$oldname'";
$qry = mysql_query($sql,$conn);

?>

<script language=javascript>
window.alert("Update successful");
window.location.assign("profileadmin.php");
</script>
</head>

<body>

</body>

</html>
